package openthinks.easyweb.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Represent the response trait for the HTTP request
 * @author minjdai
 * @since 2013-9-26
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ResponseReturn {

	/**
	 * the HTTP response charset
	 * @return String
	 */
	String charset() default "UTF-8";

	//TODO make a enumn type
	/**
	 * the HTTP response content type
	 * @return String
	 */
	String contentType() default "text/plain";
}
